package com.xfgg.design.singleton;

/**
 * 饿汉式：还未调用就创建了对象，线程不安全
 *
 * @author xfgg
 */
public class Hungry {
    private static final Hungry hungry = new Hungry();

    private Hungry() {

    }

    public static Hungry getHungry() {
        return hungry;
    }
}
